package com.fowo.api.model.purchase.order.productlog;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 采购订单产品日志 导入导出辅助模型 */
@Getter
@Setter
public class PurchaseOrderProductlogExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属采购订单")
  private String parentPurchaseOrderPurchaseOrderCode;

  @ExcelIgnore
  @ExcelProperty(value = "所属采购订单")
  private Long parentPurchaseOrder;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "日期")
  private java.util.Date logdate;

  @Size(max = 50, message = "内容长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "内容")
  private String content;
}
